/*
 * @Author: your name
 * @Date: 2021-12-24 12:56:52
 * @LastEditTime: 2021-12-24 17:03:40
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \json-serveg:\桌面2\50htmljs\menuBar\script.js
 */
const nav = document.getElementById('nav')
const toggle  = document.getElementById('toggle')

toggle.addEventListener('click',()=>{
    nav.classList.toggle('active')
})